package sctu.edu.java.year2016.team05.wangliwei.day20160519.chapter6_1;

/**
 * 判断字符串"mingrikejijavabu"中字符'i'出现了几次，并将结果输出
 */
public class Number1{
    public static void main(String[] args)
    {String str="mingrikejijavabu";
        String str1=str.replace("i","");
        System.out.println("i出现的次数为："+(str.length()-str1.length()));



    }

}
